import axios from 'axios'
const ins = axios.create({
    baseURL:"http://kumanxuan1.f3322.net:8001",
    timeout:5000
})
// 请求拦截
ins.interceptors.request.use(config=>{
    let token = localStorage.getItem('token');
    if (token) {
        config.headers[X-Nideshop-Token] = token;
    }
    return config
})
// 响应拦截
ins.interceptors.response.use(res=>{
    return res
})
export default ins
